import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { SysUserComponent } from './user/user.component';
import { SysDictComponent } from './dict/dict.component';
import { SysRoleComponent } from './role/role.component';
import { SysGroupComponent } from './group/group.component';
import { SysTenantComponent } from './tenant/tenant.component';
import { SysResourceComponent } from './resource/resource.component';
import { SysRouteComponent } from './route/route.component';

const routes: Routes = [
  { path: 'user', component: SysUserComponent },
  { path: 'dict', component: SysDictComponent },
  { path: 'role', component: SysRoleComponent },
  { path: 'group', component: SysGroupComponent },
  { path: 'tenant', component: SysTenantComponent },
  { path: 'resource', component: SysResourceComponent },
  { path: 'route', component: SysRouteComponent },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class SysRoutingModule {}
